/*
 * XML Type:  XRow
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XRow
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XRow(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XRowImpl extends com.seedwill.xul.core.impl.XIdentifiedImpl implements com.seedwill.xul.core.XRow
{
    private static final long serialVersionUID = 1L;
    
    public XRowImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INDEX$0 = 
        new javax.xml.namespace.QName("", "index");
    private static final javax.xml.namespace.QName RESIZABLE$2 = 
        new javax.xml.namespace.QName("", "resizable");
    private static final javax.xml.namespace.QName HEIGHT$4 = 
        new javax.xml.namespace.QName("", "height");
    private static final javax.xml.namespace.QName WRAP$6 = 
        new javax.xml.namespace.QName("", "wrap");
    private static final javax.xml.namespace.QName REMOVABLE$8 = 
        new javax.xml.namespace.QName("", "removable");
    private static final javax.xml.namespace.QName DRAGABLE$10 = 
        new javax.xml.namespace.QName("", "dragable");
    
    
    /**
     * Gets the "index" attribute
     */
    public int getIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INDEX$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(INDEX$0);
            }
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "index" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(INDEX$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_default_attribute_value(INDEX$0);
            }
            return target;
        }
    }
    
    /**
     * True if has "index" attribute
     */
    public boolean isSetIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(INDEX$0) != null;
        }
    }
    
    /**
     * Sets the "index" attribute
     */
    public void setIndex(int index)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INDEX$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(INDEX$0);
            }
            target.setIntValue(index);
        }
    }
    
    /**
     * Sets (as xml) the "index" attribute
     */
    public void xsetIndex(org.apache.xmlbeans.XmlInt index)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(INDEX$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(INDEX$0);
            }
            target.set(index);
        }
    }
    
    /**
     * Unsets the "index" attribute
     */
    public void unsetIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(INDEX$0);
        }
    }
    
    /**
     * Gets the "resizable" attribute
     */
    public boolean getResizable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESIZABLE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(RESIZABLE$2);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "resizable" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetResizable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(RESIZABLE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(RESIZABLE$2);
            }
            return target;
        }
    }
    
    /**
     * True if has "resizable" attribute
     */
    public boolean isSetResizable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(RESIZABLE$2) != null;
        }
    }
    
    /**
     * Sets the "resizable" attribute
     */
    public void setResizable(boolean resizable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESIZABLE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(RESIZABLE$2);
            }
            target.setBooleanValue(resizable);
        }
    }
    
    /**
     * Sets (as xml) the "resizable" attribute
     */
    public void xsetResizable(org.apache.xmlbeans.XmlBoolean resizable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(RESIZABLE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(RESIZABLE$2);
            }
            target.set(resizable);
        }
    }
    
    /**
     * Unsets the "resizable" attribute
     */
    public void unsetResizable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(RESIZABLE$2);
        }
    }
    
    /**
     * Gets the "height" attribute
     */
    public int getHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HEIGHT$4);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "height" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(HEIGHT$4);
            return target;
        }
    }
    
    /**
     * True if has "height" attribute
     */
    public boolean isSetHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(HEIGHT$4) != null;
        }
    }
    
    /**
     * Sets the "height" attribute
     */
    public void setHeight(int height)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HEIGHT$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HEIGHT$4);
            }
            target.setIntValue(height);
        }
    }
    
    /**
     * Sets (as xml) the "height" attribute
     */
    public void xsetHeight(org.apache.xmlbeans.XmlInt height)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(HEIGHT$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(HEIGHT$4);
            }
            target.set(height);
        }
    }
    
    /**
     * Unsets the "height" attribute
     */
    public void unsetHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(HEIGHT$4);
        }
    }
    
    /**
     * Gets the "wrap" attribute
     */
    public boolean getWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WRAP$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(WRAP$6);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "wrap" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(WRAP$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(WRAP$6);
            }
            return target;
        }
    }
    
    /**
     * True if has "wrap" attribute
     */
    public boolean isSetWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(WRAP$6) != null;
        }
    }
    
    /**
     * Sets the "wrap" attribute
     */
    public void setWrap(boolean wrap)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WRAP$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WRAP$6);
            }
            target.setBooleanValue(wrap);
        }
    }
    
    /**
     * Sets (as xml) the "wrap" attribute
     */
    public void xsetWrap(org.apache.xmlbeans.XmlBoolean wrap)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(WRAP$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(WRAP$6);
            }
            target.set(wrap);
        }
    }
    
    /**
     * Unsets the "wrap" attribute
     */
    public void unsetWrap()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(WRAP$6);
        }
    }
    
    /**
     * Gets the "removable" attribute
     */
    public boolean getRemovable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REMOVABLE$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(REMOVABLE$8);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "removable" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetRemovable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(REMOVABLE$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(REMOVABLE$8);
            }
            return target;
        }
    }
    
    /**
     * True if has "removable" attribute
     */
    public boolean isSetRemovable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(REMOVABLE$8) != null;
        }
    }
    
    /**
     * Sets the "removable" attribute
     */
    public void setRemovable(boolean removable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REMOVABLE$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REMOVABLE$8);
            }
            target.setBooleanValue(removable);
        }
    }
    
    /**
     * Sets (as xml) the "removable" attribute
     */
    public void xsetRemovable(org.apache.xmlbeans.XmlBoolean removable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(REMOVABLE$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(REMOVABLE$8);
            }
            target.set(removable);
        }
    }
    
    /**
     * Unsets the "removable" attribute
     */
    public void unsetRemovable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(REMOVABLE$8);
        }
    }
    
    /**
     * Gets the "dragable" attribute
     */
    public boolean getDragable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DRAGABLE$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(DRAGABLE$10);
            }
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "dragable" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetDragable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(DRAGABLE$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(DRAGABLE$10);
            }
            return target;
        }
    }
    
    /**
     * True if has "dragable" attribute
     */
    public boolean isSetDragable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(DRAGABLE$10) != null;
        }
    }
    
    /**
     * Sets the "dragable" attribute
     */
    public void setDragable(boolean dragable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DRAGABLE$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DRAGABLE$10);
            }
            target.setBooleanValue(dragable);
        }
    }
    
    /**
     * Sets (as xml) the "dragable" attribute
     */
    public void xsetDragable(org.apache.xmlbeans.XmlBoolean dragable)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(DRAGABLE$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(DRAGABLE$10);
            }
            target.set(dragable);
        }
    }
    
    /**
     * Unsets the "dragable" attribute
     */
    public void unsetDragable()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(DRAGABLE$10);
        }
    }
}
